package com.example.demo;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Description:
 * User: 故我
 * Date: 2023-10-31
 * Time: 11:31
 */
@Controller
@ResponseBody
@RequestMapping("/calc")
public class CalcController {
    @RequestMapping("/num")
    public String Calc(Integer num1, Integer num2) {
        return "结果为：" + (num1 + num2);
    }
}
